#pragma once

#include <string>

namespace html::tmplt
{

class Part
{
public:
    Part(bool isText, std::string &&content)
        : isText_(isText), content_(std::move(content)) {
    }

    bool isText() const {
        return isText_;
    }

    const std::string &content() const {
        return content_;
    }

private:
    bool isText_ = false;
    std::string content_;
};

} // namespace html::tmplt
